﻿using AutoMapper;
using BlogApi.Models;
using BlogApi.ModelsDto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace BlogApi.Profiles
{
    public class CommentProfile:Profile
    {
        public CommentProfile()
        {
            CreateMap<CommentAddDto, Comment>().ForMember(dest => dest.Content, opt => opt.MapFrom(src => src.ArticleComment));
        }
    }
}
